<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('town/dels', $attributes);
?>
<table class="admindata">
    <thead>
        <tr>
            <th colspan="4"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
                <?=lang('total');?>
                <?=$num?>
                <?=lang('record');?>
                <span class="pages">
                <?=$pagination?>
                </span> </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew');" /></th>
            <th>Tỉnh thành</th>
            <th>Thứ tự</th>
            <th width='120'><?=lang('functions');?></th>
        </tr>
    </thead>
    <?
	$k=1;
	foreach($list as $rs):
?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->town_id?>"></td>
        <td><?=$rs->town_name?></td>
        <td><?=$rs->sort_no?></td>
        <td align="center"><?=icon_edit('town/edit/'.$rs->town_id)?>
            <span id="publish<?=$rs->town_id?>"><?=icon_active("'town'","'town_id'",$rs->town_id,$rs->bl_active)?></span>
            <?=icon_del('town/del/'.$rs->town_id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
		$k=1-$k;
		endforeach;
	?>
    <tfoot>
    <td colspan="4"><input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="<?=lang('delete');?>">
            <?=lang('total');?>
            <?=$num?>
            <?=lang('record');?>
            <span class="pages">
            <?=$pagination?>
            </span></td>
            </tfoot>
</table>
<?=form_close()?>
